/*
 * @Description: Person 
 * @Author: rendc
 * @Date: 2023-11-22 16:19:08
 * @LastEditors: rendc
 * @LastEditTime: 2023-11-22 16:22:33
 */
// Person类 用来做父类
class Person {
  private String name;
  public String getName() {
    System.out.println("My name is " + name);
    return name;
  }
  public void setName(String name) {
    this.name = name;
  }
  public void sayHello(){
    System.out.println("[Person]:Hello!My name is " + name);
  }
}